package request

import "github.com/astaxie/beego/validation"

type CommonBatchRequest struct {
	Ids []uint `json:"ids" binding:"required"` //主键集合 必填
}

func (c *CommonBatchRequest) Valid(v *validation.Validation) {
	if len(c.Ids) == 0 {
		v.SetError("Ids", "没有可选项")
	}
}
